.class Les/qy$w;
.super Ljava/lang/Object;
.source "BottomMenuItemProvider.java"

# interfaces
.implements Landroid/view/MenuItem$OnMenuItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/qy;->d()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/qy;


# direct methods
.method constructor <init>(Les/qy;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/qy$w;->a:Les/qy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMenuItemClick(Landroid/view/MenuItem;)Z
    .locals 10

    const/4 p1, 0x0

    .line 1
    :try_start_0
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m0()V

    .line 2
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v0

    const v1, 0x7f1102b2

    if-eqz v0, :cond_11

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v2

    .line 4
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->G1(Ljava/lang/String;)Z

    move-result v3

    const/4 v4, 0x1

    if-eqz v3, :cond_0

    .line 5
    new-instance v0, Lcom/estrongs/android/ui/dialog/m;

    iget-object v1, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v1}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/m;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/m;->a()V

    return v4

    .line 6
    :cond_0
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->e1(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_f

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->b2(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    goto/16 :goto_3

    .line 7
    :cond_1
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->o2(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 8
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->f(Les/qy;)Lcom/estrongs/android/ui/dialog/j0;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->f(Les/qy;)Lcom/estrongs/android/ui/dialog/j0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/j0;->a()Z

    move-result v0

    if-eqz v0, :cond_2

    return v4

    .line 9
    :cond_2
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j0;

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/j0;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v1}, Les/qy;->a(Les/qy;Lcom/estrongs/android/ui/dialog/j0;)Lcom/estrongs/android/ui/dialog/j0;

    .line 10
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->f(Les/qy;)Lcom/estrongs/android/ui/dialog/j0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/j0;->b()V

    goto/16 :goto_4

    .line 11
    :cond_3
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->I1(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 12
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->g(Les/qy;)Lcom/estrongs/android/ui/dialog/n;

    move-result-object v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->g(Les/qy;)Lcom/estrongs/android/ui/dialog/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/n;->a()Z

    move-result v0

    if-eqz v0, :cond_4

    return v4

    .line 13
    :cond_4
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    new-instance v1, Lcom/estrongs/android/ui/dialog/n;

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/n;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v1}, Les/qy;->a(Les/qy;Lcom/estrongs/android/ui/dialog/n;)Lcom/estrongs/android/ui/dialog/n;

    .line 14
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->g(Les/qy;)Lcom/estrongs/android/ui/dialog/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/n;->b()V

    goto/16 :goto_4

    .line 15
    :cond_5
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->M1(Ljava/lang/String;)Z

    move-result v3

    const/4 v5, -0x1

    const v6, 0x7f110055

    const v7, 0x7f110213

    const v8, 0x7f110211

    const/4 v9, 0x2

    if-eqz v3, :cond_7

    .line 16
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->O1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 17
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-static {v0, v1, p1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto/16 :goto_4

    .line 18
    :cond_6
    :try_start_1
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "Local_new"

    .line 19
    invoke-virtual {v0, v1}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 20
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 21
    :goto_0
    new-instance v0, Lcom/estrongs/android/ui/dialog/q;

    iget-object v1, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v1}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 22
    invoke-virtual {v0, v6}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    .line 23
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q;->setSelectable(Z)V

    new-array v1, v9, [Ljava/lang/String;

    .line 24
    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    .line 25
    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v8}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, p1

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    .line 26
    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v7}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v4

    new-instance v2, Les/qy$w$a;

    invoke-direct {v2, p0}, Les/qy$w$a;-><init>(Les/qy$w;)V

    .line 27
    invoke-virtual {v0, v1, v5, v2}, Lcom/estrongs/android/ui/dialog/q;->setItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)V

    .line 28
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    goto/16 :goto_4

    .line 29
    :cond_7
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->w0(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_8

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->V1(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 30
    new-instance v0, Lcom/estrongs/android/ui/dialog/e0;

    iget-object v1, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v1}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/e0;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/e0;->a()V

    goto/16 :goto_4

    .line 31
    :cond_8
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_c

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_c

    .line 32
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->m1(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    goto :goto_1

    .line 33
    :cond_9
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->Y0(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_a

    .line 34
    new-instance v0, Les/ix;

    iget-object v1, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v1}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Les/ix;-><init>(Landroid/app/Activity;)V

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    goto/16 :goto_4

    .line 35
    :cond_a
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->b1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_b

    .line 36
    check-cast v0, Lcom/estrongs/android/view/x;

    invoke-virtual {v0}, Lcom/estrongs/android/view/x;->H0()V

    goto/16 :goto_4

    .line 37
    :cond_b
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, p1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return p1

    .line 38
    :cond_c
    :goto_1
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->h(Les/qy;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    if-eqz v0, :cond_d

    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->h(Les/qy;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_d

    return v4

    .line 39
    :cond_d
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    new-instance v1, Lcom/estrongs/android/ui/dialog/q;

    iget-object v3, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v3}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v3

    invoke-direct {v1, v3}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v1}, Les/qy;->a(Les/qy;Lcom/estrongs/android/ui/dialog/q;)Lcom/estrongs/android/ui/dialog/q;

    .line 40
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->h(Les/qy;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    .line 41
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->h(Les/qy;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q;->setSelectable(Z)V

    .line 42
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_e

    const/4 v1, 0x5

    new-array v1, v1, [Ljava/lang/String;

    .line 43
    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v7}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, p1

    const-string v2, "Word"

    aput-object v2, v1, v4

    const-string v2, "Excel"

    aput-object v2, v1, v9

    const/4 v2, 0x3

    const-string v3, "PowerPoint"

    aput-object v3, v1, v2

    const/4 v2, 0x4

    iget-object v3, p0, Les/qy$w;->a:Les/qy;

    .line 44
    invoke-static {v3}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v3

    invoke-virtual {v3, v8}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    goto :goto_2

    :cond_e
    new-array v1, v9, [Ljava/lang/String;

    .line 45
    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v7}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, p1

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    .line 46
    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v8}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v4

    .line 47
    :goto_2
    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->h(Les/qy;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v2

    new-instance v3, Les/qy$w$b;

    invoke-direct {v3, p0, v0}, Les/qy$w$b;-><init>(Les/qy$w;Z)V

    invoke-virtual {v2, v1, v5, v3}, Lcom/estrongs/android/ui/dialog/q;->setItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)V

    .line 48
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->h(Les/qy;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    goto :goto_4

    .line 49
    :cond_f
    :goto_3
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->b(Les/qy;)Lcom/estrongs/android/ui/dialog/l;

    move-result-object v0

    if-eqz v0, :cond_10

    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->b(Les/qy;)Lcom/estrongs/android/ui/dialog/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/l;->a()Z

    move-result v0

    if-eqz v0, :cond_10

    return v4

    .line 50
    :cond_10
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    new-instance v1, Lcom/estrongs/android/ui/dialog/l;

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/l;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v1}, Les/qy;->a(Les/qy;Lcom/estrongs/android/ui/dialog/l;)Lcom/estrongs/android/ui/dialog/l;

    .line 51
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->b(Les/qy;)Lcom/estrongs/android/ui/dialog/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/l;->b()V

    :goto_4
    return v4

    .line 52
    :cond_11
    iget-object v0, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v0}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    iget-object v2, p0, Les/qy$w;->a:Les/qy;

    invoke-static {v2}, Les/qy;->a(Les/qy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, p1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_5

    :catchall_0
    move-exception v0

    .line 53
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    .line 54
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "newItemClickListener.onMenuItemClick() catchs "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-static {v1, v0}, Lcom/estrongs/android/util/n;->e(Ljava/lang/String;Ljava/lang/String;)V

    :goto_5
    return p1
.end method
